]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
folderIcon: Properly reject drop
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Fri, 9 Aug 2019 13:56:37 +0000 (10:56 -0300)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Fri, 9 Aug 2019 13:58:46 +0000 (10:58 -0300)
When a drop is rejected, we are mistakenly returning
true instead of false.

Return false when the rejecting the drop.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/671

js/ui/appDisplay.js

index 8882336ffd2cad82279b3600f62575699c4bc36a..9a81887480894da5d037305d601e1ca9fe703d1e 100644 (file)
@@ -1520,7 +1520,7 @@ var FolderIcon = class FolderIcon {
 
     acceptDrop(source) {
         if (!this._canAccept(source))
-            return true;
+            return false;
 
         let app = source.app;
         let folderApps = this._folder.get_strv('apps');